﻿@model IList<CameraModel>
@using Nop.Web.Models.WindAlert;
@using Nop.Web.Framework.UI;
@{
    Random random = new Random();
}


@if (Model.Count > 0)
{
    <div class="camera-grid">
        @foreach (var item in Model)
        {
            
            <div class="camera-item">
                <div class="picture">
                    <a href="@Url.RouteUrl("Cameras")">
                        <img src="@(item.CameraLink + "0.jpg?" + random.Next(1000, 9000).ToString())" alt="@item.Name">
                    </a>
                </div>
                <div class="camera-caption">
                    <div class="image-title">@item.Name</div>
                </div>
            </div>
        }
    </div>
    <div style="clear:both;"></div>
}
